package com.cssl.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 员工表
 * @TableName sys_staff
 */
@TableName(value ="sys_staff")
@Data
public class SysStaff implements Serializable {
    /**
     * 员工id
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 员工编码
     */
    @Excel(name = "员工编号", orderNum = "0")
    private String code;

    /**
     * 员工姓名
     */
    @Excel(name = "员工姓名", orderNum = "1")
    private String name;

    /**
     * 性别，0男，1女，默认0
     */
    @Excel(name = "员工性别", orderNum = "2")
    private Integer gender;

    /**
     * 员工密码
     */
    private String pwd;

    /**
     * 员工头像
     */
    private String avatar;

    /**
     * 员工生日
     */
    @Excel(name = "员工生日", orderNum = "3")
    private Date birthday;

    /**
     * 员工电话
     */
    @Excel(name = "员工电话", orderNum = "4")
    private String phone;

    /**
     * 地址
     */
    @Excel(name = "员工地址", orderNum = "5")
    private String address;

    /**
     * 员工备注
     */
    @Excel(name = "员工备注", orderNum = "6")
    private String remark;

    /**
     * 部门id
     */
    private Object dept_id;

    /**
     * 员工状态，0异常，1正常
     */
    private Integer status;

    /**
     * 创建时间
     */
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String create_time;

    /**
     * 更新时间
     */
    @TableField(exist = false)
    private Date update_time;

    /**
     * 逻辑删除，0未删除，1已删除
     */
    @TableField(exist = false)
    private Integer is_Deleted;


    //部门
    @TableField(exist = false)
    private List<SysDept> depts;

    //角色
    @TableField(exist = false)
    private  List<PerRole> roles;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}